use crossterm::event::{KeyCode, KeyEvent, KeyModifiers};

use crate::keyboard::editor_read_key;

pub fn editor_process_keypress() -> bool {
  let c = editor_read_key().unwrap();

  match c {
    KeyEvent {
      code: KeyCode::Char('q'),
      modifiers: KeyModifiers::CONTROL,
    } => true,
    _ => false,
  }
}
